<?php
/**
 * Created by PhpStorm.
 * User: wzy12
 * Date: 2018/10/20
 * Time: 2:32
 */

namespace app\admin\validate;


use think\Validate;

class Shipping extends Validate
{
    protected $rule = [
        'shipping_name|物流公司名字' => 'require',
        'shipping_code|快递公司编码'  =>  'require|alpha',
        '__token__' => 'token|require'
    ];

    protected $message = [
        '__token__.require'  =>  '请不要进行非法操作',
    ];
    protected $scene = [
        'del' => ['__token__'],
        'is_open' => ['is_open' => 'require|number']
    ];
}